package com.zhouyu.beanconfig;

import org.springframework.context.annotation.DeferredImportSelector;
import org.springframework.core.type.AnnotationMetadata;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author kuangliming
 * @Date 2024/1/30 22:55
 * @Description
 **/
public class SunnyDeferredImportSelectorGroup implements SunnyDeferredImportSelector.Group{

	private List<Entry> entryList = new ArrayList<>();
	@Override
	public void process(AnnotationMetadata metadata, DeferredImportSelector selector) {
		entryList.add(new Entry(metadata,"com.zhouyu.beanconfig.SunnyAutoConfiguration"));
	}

	@Override
	public Iterable<Entry> selectImports() {
		return entryList;
	}
}
